package com.agileboot.domain.performance.teaching.db;

import com.agileboot.common.core.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 教学工作量表
 * </p>
 */
@Getter
@Setter
@TableName("teaching_workloads")
@ApiModel(value = "TeachingWorkloadEntity对象", description = "教学工作量表")
public class TeachingWorkloadEntity extends BaseEntity<TeachingWorkloadEntity> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("教学工作量ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("教职工ID")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty("考核年度")
    @TableField("assessment_year")
    private Integer assessmentYear;

    @ApiModelProperty("通识课程得分")
    @TableField("general_course_score")
    private Double generalCourseScore;

    @ApiModelProperty("学科课程得分")
    @TableField("subject_course_score")
    private Double subjectCourseScore;

    @ApiModelProperty("实验课程得分")
    @TableField("lab_course_score")
    private Double labCourseScore;

    @ApiModelProperty("教学工作量总分")
    @TableField("total_teaching_score")
    private Double totalTeachingScore;

    @ApiModelProperty("导入时间")
    @TableField("imported_at")
    private String importedAt;

    @ApiModelProperty("导入操作人ID")
    @TableField("imported_by_user_id")
    private Long importedByUserId;

    @ApiModelProperty("部门ID")
    @TableField("dept_id")
    private Long deptId;

    @Override
    public Serializable pkVal() {
        return this.id;
    }

}
